package org.bigdata.framework.core.model;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author dal.anhuifeng
 * @since 2018-04-13
 */
@TableName("repository_product")
public class RepositoryProduct implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 产品名称
	 */
	private String name;

	/**
	 * 产品描述
	 */
	private String description;

	/**
	 * 产品单价
	 */
	private BigDecimal price;

	/**
	 * 状态（0-待提交 1-已提交 2-构建中 3-构建完毕 -1-禁用）
	 */
	private Integer status;

	/**
	 * web页面链接地址(前台搜索界面地址)
	 */
	@TableField(value="web_url")
	private String webUrl;

	/**
	 * 产品库包括的类列表
	 */
	@TableField(value="classes_ids")
	private String classesIds;

	/**
	 * 产品搜索表达式（solr查询表达式）
	 */
	@TableField(value="search_expression")
	private String searchExpression;

	/**
	 * 是否根据知识库同步更新产品数据（0-不同步 1-同步）
	 */
	@TableField(value="is_synchronous")
	private Integer isSynchronous;

	/**
	 * solr索引库URL
	 */
	@TableField(value="solr_core_url")
	private String solrCoreUrl;

	/**
	 * 封面图片
	 */
	@TableField(value="cover_img")
	private String coverImg;

	/**
	 * 计量单位（pian-篇、ye-页、zi-字）/ 如果设置计量单位为页/字的时候，需要在知识资源要有page/words字段
	 */
	private String units;

	/**
	 * 优惠/折扣金额
	 */
	@TableField(value="preferential_price")
	private BigDecimal preferentialPrice;

	/**
	 * 优惠/折扣-起始时间
	 */
	@TableField(value="preferential_date_start")
	private String preferentialDateStart;

	/**
	 * 优惠/折扣-终止时间
	 */
	@TableField(value="preferential_date_end")
	private String preferentialDateEnd;

	/**
	 * 计费类型（0-按产品库计费 1-固定单价计费）
	 */
	@TableField(value="charge_type")
	private Integer chargeType;

	/**
	 * 产品分类（关联字典类，字典类英文名称：product_category）
	 */
	@TableField(value="category_sid")
	private String categorySid;

	/**
	 * 创建时间
	 */
	@TableField(value="create_time")
	private String createTime;

	/**
	 * 父节点
	 */
	private Integer pid;

	/**
	 * 产品搜索表达式_追加（solr查询表达式）
	 */
	@TableField(value="search_expression_additional")
	private String searchExpressionAdditional;



	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getWebUrl() {
		return webUrl;
	}

	public void setWebUrl(String webUrl) {
		this.webUrl = webUrl;
	}

	public String getClassesIds() {
		return classesIds;
	}

	public void setClassesIds(String classesIds) {
		this.classesIds = classesIds;
	}

	public String getSearchExpression() {
		return searchExpression;
	}

	public void setSearchExpression(String searchExpression) {
		this.searchExpression = searchExpression;
	}

	public Integer getIsSynchronous() {
		return isSynchronous;
	}

	public void setIsSynchronous(Integer isSynchronous) {
		this.isSynchronous = isSynchronous;
	}

	public String getSolrCoreUrl() {
		return solrCoreUrl;
	}

	public void setSolrCoreUrl(String solrCoreUrl) {
		this.solrCoreUrl = solrCoreUrl;
	}

	public String getCoverImg() {
		return coverImg;
	}

	public void setCoverImg(String coverImg) {
		this.coverImg = coverImg;
	}

	public String getUnits() {
		return units;
	}

	public void setUnits(String units) {
		this.units = units;
	}

	public BigDecimal getPreferentialPrice() {
		return preferentialPrice;
	}

	public void setPreferentialPrice(BigDecimal preferentialPrice) {
		this.preferentialPrice = preferentialPrice;
	}

	public String getPreferentialDateStart() {
		return preferentialDateStart;
	}

	public void setPreferentialDateStart(String preferentialDateStart) {
		this.preferentialDateStart = preferentialDateStart;
	}

	public String getPreferentialDateEnd() {
		return preferentialDateEnd;
	}

	public void setPreferentialDateEnd(String preferentialDateEnd) {
		this.preferentialDateEnd = preferentialDateEnd;
	}

	public Integer getChargeType() {
		return chargeType;
	}

	public void setChargeType(Integer chargeType) {
		this.chargeType = chargeType;
	}

	public String getCategorySid() {
		return categorySid;
	}

	public void setCategorySid(String categorySid) {
		this.categorySid = categorySid;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getSearchExpressionAdditional() {
		return searchExpressionAdditional;
	}

	public void setSearchExpressionAdditional(String searchExpressionAdditional) {
		this.searchExpressionAdditional = searchExpressionAdditional;
	}

}
